package com.ruoyi.yuyuan.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.yuyuan.DTO.BlogPracticeDTO;
import com.ruoyi.yuyuan.DTO.Result;
import com.ruoyi.yuyuan.Entity.BlogPractice;

import java.io.IOException;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/5/29
 */
public interface IPracticeBlogService extends IService<BlogPractice> {
    Result publishPractice(BlogPracticeDTO blogPracticeDTO) throws InterruptedException;

    Result updatePractice(BlogPracticeDTO blogPracticeDTO, Long blogId) throws InterruptedException;

    Result getSinglePractice(Long blogId);

    Result getPractices(Long startId);

    Result getSearchPractices(String searchKeyWord, Short type) throws IOException;
}
